#!/bin/bash

gsettings set org.cinnamon.desktop.peripherals.mouse accel-profile "'flat'"
gsettings set org.gnome.libgnomekbd.keyboard options "['grp\tgrp:win_space_toggle']"
gsettings set org.cinnamon.desktop.interface font-name "'Ubuntu Nerd Font ${FONT_SIZE}'"
gsettings set org.nemo.desktop font "'Ubuntu Nerd Font ${FONT_SIZE}'"
gsettings set org.gnome.desktop.interface document-font-name "'Ubuntu Nerd Font ${FONT_SIZE}'"
gsettings set org.gnome.desktop.interface monospace-font-name "'JetBrainsMono Nerd Font ${FONT_SIZE}'"
gsettings set org.cinnamon.desktop.wm.preferences titlebar-font "'Ubuntu Nerd Font Bold ${FONT_SIZE}'"
gsettings set org.cinnamon.desktop.interface gtk-theme "'Arc-Lighter'"
gsettings set org.cinnamon.theme name "'Arc'"
gsettings set org.cinnamon.desktop.interface icon-theme "'Vimix-doder'"
gsettings set org.cinnamon.desktop.background picture-uri "'file://${USER_PICTURES_PATH}/mountain.jpg'"
gsettings set org.cinnamon alttab-switcher-delay "100"
gsettings set org.cinnamon.desktop.wm.preferences min-window-opacity "30"
gsettings set org.cinnamon.muffin draggable-border-width "10"
gsettings set org.cinnamon.muffin placement-mode "'center'"
gsettings set org.cinnamon.desktop.wm.preferences button-layout "':minimize,maximize,close'"
gsettings set org.cinnamon.SessionManager quit-time-delay "60"
gsettings set org.cinnamon.launcher memory-limit "2048"
gsettings set org.cinnamon.launcher check-frequency "300"
gsettings set org.cinnamon.desktop.session idle-delay "uint32 0"
gsettings set org.cinnamon.settings-daemon.plugins.power sleep-display-ac "0"
gsettings set org.cinnamon panels-height "['1:30']"
gsettings set org.cinnamon panel-zone-icon-sizes "'[{\"panelId\": 1, \"left\": 22, \"center\": 0, \"right\": 16}]'"
gsettings set org.nemo.preferences default-folder-viewer "'list-view'"
gsettings set org.nemo.preferences show-list-view-icon-toolbar "false"
gsettings set org.nemo.preferences show-compact-view-icon-toolbar "false"
gsettings set org.nemo.preferences show-icon-view-icon-toolbar "false"
gsettings set org.nemo.preferences show-open-in-terminal-toolbar "true"
gsettings set org.gnome.libgnomekbd.desktop group-per-window "true"
gsettings set org.gnome.libgnomekbd.desktop default-group "0"
gsettings set org.cinnamon panels-enabled "['1:0:top']"
gsettings set org.cinnamon.desktop.default-applications.terminal exec "'alacritty'"
gsettings set org.cinnamon.desktop.interface cursor-theme "'DMZ-Black'"

if [[ ${TYPE_DEVICE} == "Laptop" ]]; then
  gsettings set org.cinnamon.settings-daemon.plugins.power button-power "'shutdown'"
fi
